package com.tyrant.houtai.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.tyrant.houtai.R;
import com.tyrant.houtai.bean.StatisticalBean;

import java.util.List;

/**
 * Created by heyue on 2017/5/16.
 */

public class StatisticalAdapter extends BaseQuickAdapter<StatisticalBean.ResultBean, BaseViewHolder> {
    public StatisticalAdapter(@LayoutRes int layoutResId, @Nullable List<StatisticalBean.ResultBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, StatisticalBean.ResultBean item) {
        helper.setText(R.id.tv_name, "注册数量:"+item.getRegisterCount()+" 授权数量:"+item.getAuthorizationCount());
       helper.setText(R.id.tv_phone, "统计日期: "+item.getStatisticsDate());
    }
}
